<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <body>

        <ui:composition template="./WEB-INF/template.xhtml">

            <ui:define name="content">
                <h:form>
                    Name: <h:inputText value="#{person.name}" size="20"/><br/>
                    Age: <h:inputText value="#{person.age}" size="6"/><br/><br/>
                    <h:commandButton actionListener="#{personSessionBean.createPerson()}" 
                                     action="show" 
                                     value="Add"/>
                </h:form>
                <br/>
                Make sure to <a href="http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-admin-basics-running-macosx.html">start Couchbase server</a>. Confirm by visiting <a href="http://localhost:8091/pools/">pools</a> and look for output as:
                
                <pre>
"pools": [
    {
        "name": "default",
        "uri": "/pools/default?uuid=21041e11772b15d7c64f3451e1293215",
        "streamingUri": "/poolsStreaming/default?uuid=21041e11772b15d7c64f3451e1293215"
    }
],
                </pre>
            </ui:define>

        </ui:composition>

    </body>
</html>
